package com.user.provider.impl;

import com.dl.user.dto.UserDTO;
import com.dl.user.inter.IUserRPCService;
import com.user.provider.service.UserService;
import jakarta.annotation.Resource;
import org.apache.dubbo.config.annotation.DubboService;

@DubboService
public class UserRPCService implements IUserRPCService {
    @Resource
    private UserService userService;

    @Override
    public UserDTO getUserByID(Long userId) {

        return userService.getUserByID(userId);
    }

    @Override
    public boolean sendLoginCode(String mobile) {
        return userService.sendLoginCode(mobile);
    }
}
